#ifndef __QpwPlayerController__
#define __QpwPlayerController__

#include <QyGLInputController.h>

namespace QpwNetwork { class Client; };
namespace QpwItems { class Decoration; };

class QpwPlayerController : public QyGL::InputController {
public:
    explicit QpwPlayerController( QyGL::Scene * target = 0 );

    void mousePressd( const QyGL::MouseEvent & event );
    void mouseMoved( const QyGL::MouseEvent & event );
    void mouseReleased( const QyGL::MouseEvent & event );
    void keyPressd( QKeyEvent * event );
    void keyReleased( QKeyEvent * event );

    QpwNetwork::Client * client;
    QpwItems::Decoration * player;

private:
    bool p_moving;
    int lastKey,
        keys;

};

#endif//__QpwPlayerController__
